package animal;

public class CE_aninal {
    public static void main(String[] args) {
        Animal an=new Animal();
       Animal ani=new Animal();
  an.age=4;
  ani.age=9;
        System.out.println(an.toString());
//        比较两个对象是否相等
        System.out.println(an==ani);
        System.out.println(an.equals(ani));

    }
}
